package com.hry.store.service;

import com.hry.store.pojo.User;

import javax.servlet.http.HttpServletRequest;

public interface UserService {
    void register(String username, String password, String phone, String email);

    Boolean checkEmail(String checkEmail);

    boolean activate(String email, String key);

    boolean login(String email, String password, int verifyCode,HttpServletRequest request ) throws Exception;

    User getUserInfo(String email);

    int updateUser(Integer userId, String name, String email, Long phone, String sign, String favorite);
}
